package org.linlinjava.litemall.admin.vo.coupon;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@ApiModel("策略统计列表")
public class CouponStatisticDetailRespVO implements Serializable {

    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("策略名称")
    private String strategyName;
    @ApiModelProperty("优惠券名称")
    private String couponName;

    @ApiModelProperty("门店名称")
    private String shopName;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("用券订单总额")
    private BigDecimal orderTotalActual;
    @ApiModelProperty("总优惠金额")
    private BigDecimal orderTotalDiscount;

    @ApiModelProperty("发放时间")
    @JsonSerialize(using = ToStringSerializer.class)
    private LocalDateTime addTime;

    @ApiModelProperty("使用")
    @JsonSerialize(using = ToStringSerializer.class)
    private LocalDateTime useTime;

    @ApiModelProperty("起")
    @JsonSerialize(using = ToStringSerializer.class)
    private LocalDateTime startTime;
    @ApiModelProperty("止")
    @JsonSerialize(using = ToStringSerializer.class)
    private LocalDateTime endTime;
}
